package com.shuai.jit.entity.vo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("前端-考研学科分类信息")
@TableName("comment")
public class VoComment {

    @TableId
    private String commentId;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("用户名字")
    private String username;

    @ApiModelProperty("用户头像")
    private String userImg;

    @ApiModelProperty("评论内容")
    private String commentContent;

    @ApiModelProperty("评论的父id")
    private String commentPid;

    @ApiModelProperty("评论的点赞数目")
    private Integer commentGood;

    @ApiModelProperty("评论的踩")
    private Integer commentBad;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;


    @TableField(exist = false)
    private List<VoComment> voCommentList;

}
